Remove Item(s) from SetΒΆ
S.pop()
Remove Item(s) from Set.
S = set([0, 1, 3, 4, 5])
S.pop()
print(S) # {1, 3, 4, 5}
S.pop()
print(S) # {3, 4, 5}
S.pop()
S = set([0, 1, 3, 4, 5])
S.pop()
print(S) # {1, 3, 4, 5}
S.pop()
print(S) # {3, 4, 5}